﻿CREATE TABLE [dbo].[PerfilesPermisos] (
    [IdPerfil]  INT     NOT NULL,
    [IdPermiso] TINYINT NOT NULL,
    CONSTRAINT [PK_PerfilesPermisos] PRIMARY KEY CLUSTERED ([IdPerfil] ASC, [IdPermiso] ASC),
    CONSTRAINT [FK_PerfilesPermisos_Perfiles] FOREIGN KEY ([IdPerfil]) REFERENCES [dbo].[Perfiles] ([IdPerfil]),
    CONSTRAINT [FK_PerfilesPermisos_Permisos] FOREIGN KEY ([IdPermiso]) REFERENCES [dbo].[Permisos] ([IdPermiso])
);

